Ran Disk Utilities on Bootcamp drive

I was having some trouble with my mac running slow. At the same time, my wife is needing to use Windows for work. In the process of rebooting the computer, I realized that I could only get the computer to boot when the HD was connected to USB- but this is just info that leads up to my current issues.


In my troubleshooting of the drive, I ran disk utility on both partitions. Once I settled on connecting through USB (I believe the cable from the drive to the motherboard is bad), I was able to boot into Mac OS, see the Bootcamp partition, but when I did a Option Boot, I could not see the Windows partition nor could I select it in my start up disk selections in Mac OS.


I followed directions in Terminal found in recent discussions posted by LonerT to get things back, as other users seemed to have similar stories to mine. The fix wouldn't work, I found a thread post that directed to go into the Recovery partition and use the csrutil disable command. I did that, then rebooted and was able to successfully do the recommended steps ( sudo gdisk /dev/disk0 ).


Now, Mac OS partition is gone. Windows through Bootcamp is still gone. I can only boot my computer in the recovery mode, and I am not able to see my Mac OS partition in disk utility.


Is there any hope of restoring my drive? I can see that the space used by my Mac partition is still there, but even if I try to reinstall Mac OS, it doesn't give me the option to use that space- the space doesn't seem to be allocated to a drive partition anymore.

MacBook Pro (13-inch Early 2011), OS X El Capitan (10.11.6)

Posted on Sep 6, 2016 11:51 AM

Reply
13 replies

Sep 6, 2016 12:22 PM in response to metalstud

You have garbaged the drive too badly to recover. You will have to use Disk Utility to erase the entire partition for OS X and reinstall it. Then use Boot Camp Assistant to remove the Windows partition and restore the drive.

Clean Install of El Capitan


  1. Restart the computer. Immediately after the chime hold down the Command-Option-R keys until a globe appears.
  2. The Utility Menu will appear in from 5-20 minutes. Be patient.
  3. Select Disk Utility and click on the Continue button.
  4. When Disk Utility loads select the drive (usually, the out-dented entry) from the side list.
  5. Click on the Partition tab in Disk Utility's main window. A panel will drop down.
  6. Set the partition scheme to GUID.
  7. Set the Format type to Mac OS Extended (Journaled.)
  8. Click on the Apply button, then click on the Done button when it activates.
  9. Quit Disk Utility and return to the Utility Menu.
  10. Select Reinstall OS X and click on the Continue button.

I suggest that while doing the above you also remove the Windows partition, if the above process does not do it automatically. Ideally, the above will provide a single full-sized volume for OS X.

Sep 6, 2016 2:20 PM in response to Loner T

Thanks for helping out!


-bash-3.2# diskutil list

/dev/disk0 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *750.2 GB disk0

1: 0xEE 750.2 GB disk0s1

2: Apple_HFS Recovery HD 650.0 MB disk0s2

/dev/disk1 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme +2.1 GB disk1

1: Apple_HFS OS X Base System 1.3 GB disk1s1

/dev/disk2 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +5.2 MB disk2

/dev/disk3 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk3

/dev/disk4 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk4

/dev/disk5 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk5

/dev/disk6 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk6

/dev/disk7 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk7

/dev/disk8 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +6.3 MB disk8

/dev/disk9 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +2.1 MB disk9

/dev/disk10 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +1.0 MB disk10

/dev/disk11 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk11

/dev/disk12 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk12

/dev/disk13 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +1.0 MB disk13

/dev/disk14 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +6.3 MB disk14

-bash-3.2# diskutil cs list

No CoreStorage logical volume groups found

-bash-3.2# gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

gpt show: /dev/disk0: PMBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/disk0: Sec GPT at sector 1465149167

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 1383760048 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1384169688 1269544 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1385439232 66195456 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1451634688 13514447

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header

-bash-3.2#

Sep 6, 2016 2:22 PM in response to metalstud

To futher complicate things, I had decided to kill the bootcamp install and install mac os on that partition, with the hope that I could eventually recover the data from the previous mac os side of the drive. That didn't go so well, and now bootcamp partition is gone and just merged in with the whole drive and I can't select anything to partition or to install mac os onto.

Sep 8, 2016 4:41 AM in response to metalstud

Ok, here is where I am at. I got my new cable to install my HD internally, so I did that. I connected a HD via USB (with the original now internal) set up a partition on the USB drive and installed Mac OS. Went great. Now, I am able to see my messed up drive in the finder, and it shows up in disk utility when in Recovery mode and when booted to the new OS on the external drive. I can navigate the files on the messed up hard drive now.


I am tempted to used Recovery to install Mac OS on the messed up drive, with the hopes that it will fix the boot issue yet keep my data intact, but maybe you have a better way to modify the disk at this point?


Thanks again, the help is appreciated! (I am about to install GTP)

Sep 8, 2016 5:11 AM in response to metalstud

metalstud wrote:


Ok, here is where I am at. I got my new cable to install my HD internally, so I did that. I connected a HD via USB (with the original now internal) set up a partition on the USB drive and installed Mac OS.

As long as the 'messed' up disk is not touched by any tools, we should be good to proceed further.


Thanks again, the help is appreciated! (I am about to install GTP)

Let me know when you are ready. As a baseline, post the output of


disktuil list

diskutil cs list

Sep 8, 2016 5:35 AM in response to Loner T

Last login: Thu Sep 8 07:29:57 on console

Ottos-MacBook-Pro:~ ottojensen$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Mac HD 708.5 GB disk0s2

3: Apple_HFS Recovery HD 650.0 MB disk0s3

4: Apple_HFS 33.9 GB disk0s4

/dev/disk1 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *80.0 GB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_HFS hard driven 62.0 GB disk1s2

3: Apple_HFS OS 17.0 GB disk1s3

4: Apple_Boot Recovery HD 650.0 MB disk1s4

/dev/disk2 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme +214.9 MB disk2

1: Apple_partition_map 32.3 KB disk2s1

2: Apple_HFS Google Chrome 214.9 MB disk2s2


Ottos-MacBook-Pro:~ ottojensen$ diskutil cs list

No CoreStorage logical volume groups found

Ottos-MacBook-Pro:~ ottojensen$

Sep 8, 2016 6:34 AM in response to metalstud

metalstud wrote:


Last login: Thu Sep 8 07:29:57 on console

Ottos-MacBook-Pro:~ ottojensen$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Mac HD 708.5 GB disk0s2

3: Apple_HFS Recovery HD 650.0 MB disk0s3

4: Apple_HFS 33.9 GB disk0s4

This is disk0 right now. In a previous post you had


-bash-3.2# diskutil list

/dev/disk0 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *750.2 GB disk0

1: 0xEE 750.2 GB disk0s1

2: Apple_HFS Recovery HD 650.0 MB disk0s2


The GPT seems to have been recovered when you re-cabled the disk, if these are the same disks. Can you try System Preferences -> Startup Disk and check if this disk0 is available as a boot disk? If yes, try to boot from it. I assume the 80GB disk is where you installed a new copy of OSX.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Ran Disk Utilities on Bootcamp drive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.